Obtains the next CPU ID in the list of physical processors of the specified memory coherence group.
OSStatus MPGetNextCpuID (
MPCoherenceID owningCoherenceID,
MPCpuID * cpuID);
owningCoherenceID
The ID of the memory coherence group whose physical processor IDs you want to obtain. Pass kInvalidID
, as only one coherence group, internal RAM, is currently defined.
cpuID
A pointer to a variable of type MPCpuID
. On return, cpuID
points to the ID of the next physical processor.
function result
A result code. See
Result Codes
for a list of possible values.
DESCRIPTION
By iterating on this function (after calling MPProcessors
, for example), you can obtain the IDs of all the processors available on the host computer. Generally you would only use this function in diagnostic programs.